from selenium.webdriver.common.by import By

"""
    学生端配置
"""

# 登陆
student_login_btn = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/button/span"

# 基础任务
student_login_task = By.XPATH, "/html/body/div[1]/section/main/div/div[2]/div[1]/div[2]/div/div/div[1]/div[1]/div"

# 查看试卷 查看完关闭该窗口
student_login_view = By.XPATH, "/html/body/div[1]/section/main/div/div[2]/div[1]/div[2]/div/div/div[1]/div[" \
                               "2]/div/table/tr[1]/td[3]/a "

# 试卷中心-开始答题  会跳转窗口
student_login_start = By.CSS_SELECTOR, ".paper-card:first-child .el-button--primary.el-button--default.is-link.button"

# 填写答案-10
student_login_input = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div/div[2]/div/div[2]/div/div/div[2]/div[" \
                                "1]/div/div/input "

# 提交试卷
student_login_submit = By.XPATH, "/html/body/div[1]/div/div[1]/div/div/div/div/div[8]/button/span"

# 返回考试记录
student_login_return = By.CSS_SELECTOR, ".el-overlay.is-message-box .el-message-box__btns button:nth-child(1)"

# 首页
student_login_home = By.XPATH, "/html/body/div[1]/section/header/ul/li[1]"

# 视频课堂-跳转页面
student_login_video_class = By.XPATH, "/html/body/div[1]/section/main/div/div[2]/div[3]/div[2]/div/div[" \
                                      "1]/div/div/div[1]/a/img "

# 视频 点击3秒后关闭改页面
student_login_video = By.XPATH, "/html/body/div/div/video"

# 试卷中心
student_login_shijuan = By.XPATH, "/html/body/div[1]/section/header/ul/li[2]"

# 固定试卷
student_login_gdsj = By.XPATH, "/html/body/div[1]/section/main/div/div[1]/div[1]/div/div/label[1]/span[2]"

# 试卷学科-语文
student_login_chinese = By.XPATH, "/html/body/div[1]/section/main/div/div[1]/div[2]/div/div/label[1]/span[2]"

# 开始答题
student_login_startwrite = By.XPATH, "/html/body/div[1]/section/main/div/div[2]/div[1]/div/div/div[8]/a/button/span"

# 提交
student_login_tijiao = By.XPATH, "/html/body/div[1]/div/div[1]/div/div/div/div/div[8]/button/span"

# 返回
student_login_return2 = By.CSS_SELECTOR, ".el-overlay.is-message-box .el-message-box__btns button:nth-child(1)"

# 视频课堂
student_login_video_class2 = By.XPATH, "/html/body/div[1]/section/header/ul/li[3]"

# 语文
student_login_chinese2 = By.XPATH, "/html/body/div[1]/section/main/div/div[1]/div/div/div/label[1]/span[2]"

# 第一个视频 查看3秒后关闭
student_login_video2 = By.XPATH, "/html/body/div[1]/section/main/div/div[2]/div[1]/div/div/div[1]/a/img"

# 视频
student_login_video3 = By.XPATH, "/html/body/div/div/video"

# 智能训练
student_login_training = By.XPATH, "/html/body/div[1]/section/header/ul/li[4]"

# 生成试卷 等待3s
student_login_generate = By.XPATH, "/html/body/div[1]/section/main/div/div/div[1]/div/div/form/div[6]/div/button/span"

# 试卷名称1              By.CSS_SELECTOR, ".el-table__body-wrapper tbody tr:nth-child(1) .el-table_1_column_1 .cell"
student_login_sjname = By.CSS_SELECTOR, ".el-table__body-wrapper tbody tr:nth-child(1) .el-table_1_column_1 .cell"

# 开始答题 (页面跳转至https://www.mindskip.net:7001/#/do?id=?)
student_login_answer = By.CSS_SELECTOR, ".el-table__body-wrapper tr:nth-child(1) .xzs-link-button button"

# 第一题 -A
student_login_A = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[1]/div[2]/div[1]/div[2]/div/div/div[" \
                            "2]/div/label[1]/span[1] "

# 第二题 -B
student_login_B = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[1]/div[2]/div[3]/div[2]/div/div/div[2]/div/label[1]/span[1]"

# 第三题 -C
student_login_C1 = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[2]/div[2]/div[1]/div[2]/div/div/div[" \
                             "2]/div/label[1]/span[1] "
student_login_C2 = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[2]/div[2]/div[1]/div[2]/div/div/div[2]/div/label[2]/span[1]"
student_login_C3 = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[2]/div[2]/div[1]/div[2]/div/div/div[" \
                             "2]/div/label[3]/span[1] "
student_login_C4 = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[2]/div[2]/div[1]/div[2]/div/div/div[" \
                             "2]/div/label[4]/span[1] "

# 第四题 -D
student_login_D1 = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[2]/div[2]/div[2]/div[2]/div/div/div[" \
                             "2]/div/label[1]/span[1] "
student_login_D2 = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[2]/div[2]/div[2]/div[2]/div/div/div[" \
                             "2]/div/label[2]/span[1] "
student_login_D3 = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[2]/div[2]/div[2]/div[2]/div/div/div[" \
                             "2]/div/label[3]/span[1] "
student_login_D4 = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[2]/div[2]/div[2]/div[2]/div/div/div[" \
                             "2]/div/label[4]/span[1] "

# 第五题 -E
student_login_E = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[3]/div[2]/div[1]/div[2]/div/div/div[" \
                            "2]/label[1]/span[1] "

# 第六题 -F
student_login_F = By.XPATH, "/html/body/div[1]/div/div[2]/div/div/form/div[3]/div[2]/div[2]/div[2]/div/div/div[" \
                            "2]/label[2]/span[1] "

# 提交
student_login_tijiao2 = By.XPATH, "/html/body/div[1]/div/div[1]/div/div/div/div/div[8]/button/span"

# 返回 关闭窗口
student_login_return3 = By.CSS_SELECTOR, ".el-overlay.is-message-box .el-message-box__btns button:nth-child(1)"

# 考试记录
student_login_record = By.XPATH, "/html/body/div[1]/section/header/ul/li[5]"

# 语文
student_login_chinese3 = By.XPATH, "/html/body/div[1]/section/main/div/div[1]/div/div/div/label[1]/span[2]"

# 试卷名称2
student_login_sjname2 = By.XPATH, "/html/body/div[1]/section/main/div/div[2]/div/div[1]/div/div[1]/div[1]"

# 查看试卷 3s后关闭
student_login_view2 = By.XPATH, "(//button[span='查看试卷'])[1]"

# 数学
student_login_mathe = By.XPATH, "/html/body/div[1]/section/main/div/div[1]/div/div/div/label[2]/span[2]"

# 查看试卷
student_login_view3 = By.XPATH, "//div[@class='answer-card-contain']//button[span='查看试卷'][1]"

# 错题本
student_login_question = By.XPATH, "/html/body/div[1]/section/header/ul/li[6]"

# 语文
student_login_chinese4 = By.XPATH, "/html/body/div[1]/section/main/div/div[1]/div/div/div/label[1]/span[2]"

# 数学
student_login_mathe2 = By.XPATH, "/html/body/div[1]/section/main/div/div[1]/div/div/div/label[2]/span[2]"
